package action.operate;

import javax.servlet.http.HttpSession;
import org.apache.struts2.ServletActionContext;

/*
 * 点击退出操作
 */
public class Exit {
	public String execute() {
		// 得到HttpSession方法
		HttpSession session = ServletActionContext.getRequest().getSession();
		// 在session中删除登录信息
		session.removeAttribute("login");
		session.removeAttribute("username");
		session.removeAttribute("id");
		return "home";
	}
}
